package com.foreverwin.mes.so.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.foreverwin.mes.core.exception.BusinessException;
import com.foreverwin.mes.so.model.RecipeResrceItemRel;
import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.base.FrontPage;
import com.foreverwin.mes.so.model.RecipeResrceItemRelView;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Syngna
 * @since 2020-02-04
 */
public interface RecipeResrceItemRelService extends IService<RecipeResrceItemRel> {

    /**
     *  分页查询
     * @param frontPage
     * @return
     */
    Page<RecipeResrceItemRel> selectPage(FrontPage<RecipeResrceItemRel> frontPage, RecipeResrceItemRel recipeResrceItemRel);

    List<RecipeResrceItemRel> selectList(RecipeResrceItemRel recipeResrceItemRel);

    List<RecipeResrceItemRelView> findRelation(String site, String resource, String item);

    String saveRelation(String site, String uesr, String item, String resource, String recipeBo) throws BusinessException;
}